package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * 
 * @TableName admin_tb
 */
@Data
public class AdminPageVo implements Serializable {
    /**
     * 系统管理员id
     */
    private Integer adminId;

    /**
     * 管理员姓名
     */
    private String adminName;

    /**
     * 管理员登录账号
     */
    private String adminAccount;

    /**
     * 密码
     */
    private String adminPassword;
    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;





    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "AdminPageVo{" +
                "adminId=" + adminId +
                ", adminName='" + adminName + '\'' +
                ", adminAccount='" + adminAccount + '\'' +
                ", adminPassword='" + adminPassword + '\'' +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AdminPageVo that = (AdminPageVo) o;
        return Objects.equals(adminId, that.adminId) && Objects.equals(adminName, that.adminName) && Objects.equals(adminAccount, that.adminAccount) && Objects.equals(adminPassword, that.adminPassword) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(adminId, adminName, adminAccount, adminPassword, pageSize, page);
    }
}